<span id="${uuid}" style="display: none"></span>
<div data-id="content" class="box_tc_s">
    <form data-id="form-org-search-info" method="post">
        <table border="1" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left">工艺名称：</td>
                <td class="hydra-right"><input type="text" data-id="processName"
                                               name="processName" class="easyui-validatebox hydra-input-width"
                                               placeholder="工艺名称.." value=""/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">工艺分类：</td>
                <td class="hydra-right">
                    <select data-id="moduleId" name="module.id"
                            class="easyui-validatebox hydra-input-width">
                    </select>
                </td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">状态：</td>
                <td class="hydra-right">
                    <select data-id="useAble" name="useAble" class="hydra-input-width">
                        <option value="">全部</option>
                        <option value="1">启用</option>
                        <option value="0">禁用</option>
                    </select>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    (function ($) {
        var uuid = "${uuid}";
        var page = new $.PageDomFactory(uuid, true);
        $[uuid] = {
            pageFactory: page
        }
        page.getJqDom("useAble").combobox({
            editable: false
        });
        $.getJSON("${pageContext.request.contextPath}/app/api/directory/list", {dirGroup: "DIRECTORY_PROCESS_CONFIG"}).done(function(data){
            var content = data.content;
            page.getJqDom("moduleId").combobox({
                valueField: 'id',
                textField: 'dirValue',
                editable:false,
                data: content
            });
        });
    })(jQuery);

    function process_search(win) {
        win.wait("start", "搜索中,请稍候.");
        var form = $["${uuid}"].pageFactory.getJqDom("form-org-search-info");
        var postData = form.serializeJson();
        win.callback(postData);
        win.close();
    }
</script>